
/*
 * 
 * This is a dummy source to test a document random.c
 * Author: Manuel Aráoz
 */



/* System includes */
#include <stdio.h>

/* General includes */
#include "../inc/random.h"

/* Define Section */
#define FOR(i,n) for(i=0;i<(n);i++)


/* Type definitions */

/* Prototype declarations */


/* Public Functions */

 
int
main(void)
{
	int i;
	
	printf("Setting random seed from time in seconds.\n");
	randomize();
	
	printf("Testing randInt(int a, int b). Should return pseudo random integer in [a,b)\n");
	FOR(i,10)
	{
		printf("%d",randInt(3,13));
		putchar('\n');
	}
	putchar('\n');
	
	printf("Testing randNormalize(). Should return pseudo random integer in [0,1)\n");
	FOR(i,10)
	{
		printf("%g",randNormalize());
		putchar('\n');
	}
	putchar('\n');
	
	printf("Testing randReal(double a, double b). Should return pseudo random double in [a,b)\n");
	FOR(i,10)
	{
		printf("%g",randReal(10,20));
		putchar('\n');
	}
	putchar('\n');
	return 0;
}

/* Functions */
